package site.jlopen.kuscia.model.job;

import java.util.ArrayList;
import java.util.List;

import lombok.Getter;
import lombok.Setter;
import site.jlopen.kuscia.cons.JobConstants;

@Getter
@Setter
public class TaskInfo {

	private String task_id;

	private String taskCode;
	
	private String alias;
	
	private String appImage = JobConstants.APP_IMAGE;
	
	private List<TaskPartie> parties;
	
	private List<String> dependencies;
	
	private String taskInputConfig;
	
	private int priority = 100;

	public TaskInfo(String taskId, String alias, List<String> dependencies,
			String taskInputConfig) {
		super();
		if(dependencies == null) {
			dependencies = new ArrayList<String>();
		}
		this.task_id = taskId;
		this.alias = alias;
		this.dependencies = dependencies;
		this.taskInputConfig = taskInputConfig;
	}

	public TaskInfo(String taskId, String alias, List<String> dependencies,
			String taskInputConfig, int priority) {
		super();
		if(dependencies == null) {
			dependencies = new ArrayList<String>();
		}
		this.task_id = taskId;
		this.alias = alias;
		this.dependencies = dependencies;
		this.taskInputConfig = taskInputConfig;
		this.priority = priority;
	}
	
}
